<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>早上练习</title>
</head>
<body>
	<script type="text/javascript">
		// var x=prompt("请输入几行");
		// var y=prompt("请输入几列");

		//  document.write("<table border='1'>");
		//  	for (var i =1 ; i <= x; i++) {
		//  		document.write("<tr>");
		//  		for (var b = 1; b <= y; b++) {
		//  			document.write("<td>");
		//  			document.write("茶图腾");
		//  			document.write("</td>");
		//  		};
		//  		document.write("</tr>");
		//  	};
		//  document.write("</table>");

		var x=prompt("请输进几行")
			y=prompt("请输进几列")

			 document.write("<table border='1'>")
			 	for (var i = 1; i <= x; i++) {
			 		document.write("<tr>")
			 		for (var a =1; a <= y; a++) {
			 			document.write("<td>")
			 			document.write("茶图腾")
			 			document.write("</td>")
			 		};
			 		document.write("</tr>")
			 	};

			 document.write("</table border='1'>")








	</script>
</body>
</html>